<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/1/8
 * Time: 8:56
 */

include 'config.php';
$id=$_GET['id'];
$sql="DELETE FROM think_data WHERE id=".$id;
if  (mysql_query($sql,$link))
{
//    header("location: index.php");
    echo "<script> alert('删除成功');parent.location.href='index.php'; </script>";
}
else
{
    echo "<script> alert('删除失败');parent.location.href='index.php'; </script>";
}